7 //Velocity = 20km/h = 20000mt/60min = 2000mt/6min
8 const double v
= 2000.0 / 6.0;
15 //cout << "n es: " << n << endl;
19 scanf("%d %d\n", &a
, &b
);
21 //cout << "a b son: " << a << " " << b << endl;
25 //cout << "s es: " << s << endl;
26 while (getline(cin
, s
) && sscanf(s
.c_str(), "%d %d %d %d", &a
, &b
, &c
, &d
) == 4){
27 //cout << "a b c d son: " << a << " " << b << " " << c << " " << d << endl;
28 x
+= sqrt( (a
-c
)*(a
-c
) + (b
-d
)*(b
-d
) );
31 int t
= floor((2 * x
/ v
) + 0.5);
33 printf("%d:%0.2d\n", t
/60, t
%60);